//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
#include <cstdlib>

#include <iostream>
#include <fstream>

#include "CreateRandomClusters.h"
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
using namespace std;
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
int main(int argc, char** argv) {

  String* filenameList;
  String* filenameSize;
  String* locationOut;
  String* filenameOut;

  if (argc < 5) {
    cout << "Error in the input arguments. The execution must be: " << endl;
    cout << "./RandomClusters <File with PDB List> <File with Cluster Size> <Output Folder> <Common Name Outfile>" << endl;
    return 0;
  }
  else {
    cout << "---------------------------------------------------------------------------------" << endl;
    cout << "     File with PDB List : " << argv[1] << endl;
    cout << " File with Cluster Size : " << argv[2] << endl;
    cout << "          Output Folder : " << argv[3] << endl;
    cout << "    Common Name Outfile : " << argv[4] << endl;
    cout << "---------------------------------------------------------------------------------" << endl;
    filenameList = new String(argv[1]);
    filenameSize = new String(argv[2]);
    locationOut  = new String(argv[3]);
    filenameOut  = new String(argv[4]);
  }

  CreateRandomClusters* createRandomClusters = new CreateRandomClusters();

  createRandomClusters->FilenameList(filenameList);
  createRandomClusters->FilenameSize(filenameSize);
  createRandomClusters->LocationOut(locationOut);
  createRandomClusters->FilenameOut(filenameOut);
  createRandomClusters->ConstructRandomClusters();

  cout << "---------------------------------------------------------------------------------" << endl;

  if (createRandomClusters) delete createRandomClusters;

  return 1;

}
//---------------------------------------------------------------------------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------------------------------------------------------------------------//


